﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Fastyou.WCF.Contracts
{
    [ServiceContract(SessionMode=SessionMode.Allowed)]
    public interface INoneSession
    {
        [OperationContract]
        void Add(int x);

        [OperationContract]
        string getResult();

        //[OperationContract(IsOneWay = true)]
        //void Add(int x);

        //[OperationContract]
        //string getResult();

        //[OperationContract(IsOneWay = true, IsInitiating = true, IsTerminating = false)]
        //void Add(int x);

        //[OperationContract(IsInitiating = false, IsTerminating = true)]
        //string getResult();
    }
}
